package org.mobai.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.mobai.model.Order;
import org.springframework.stereotype.Component;

/**
 * @author Administrator
 * @version v1.0
 * @className OrderDao
 * @description
 * @date 2024/5/9 星期四 11:33
 **/
@Mapper
@Component
public interface OrderDao extends BaseMapper<Order> {
    /**
     * 新增订单
     * */
    @Insert("INSERT INTO order_m(user_id,product_name) VALUES(#{user_id},#{product_name})")
    int insertOrder(@Param("user_id") int user_id, @Param("product_name") String product_name);



}
